package com.workcell.workdata.xthings.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.workcell.workdata.xthings.entity.mqtt.WaterMeterData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 法兰水表
 */
@Mapper
@DS("slave_mqtt")
public interface WaterMeterDataMapper extends BaseMapper<WaterMeterData> {
    WaterMeterData getDataHourLineChartInfo(@Param("deviceNo") String deviceNo, @Param("manufacturerCode") String manufacturerCode, @Param("startTime") Date nowHourTime, @Param("endTime") Date nowHourTimeAddOne);

    WaterMeterData getLatelyDataInfo(@Param("deviceNo")String deviceNo, @Param("manufacturerCode")String manufacturerCode, @Param("time")Integer time);

}
